package com.cloud.autoconfigure;

import org.omg.PortableInterceptor.INACTIVE;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chengr
 */
@Component
@EnableConfigurationProperties(WebAsyncAutoBean.class)
@ConfigurationProperties(prefix = "web.cloud.async")
public class WebAsyncAutoBean {

    /**
     * 自动配置全局等待时间默认1s
     */
    private Long milliSecond = 1000L;

    /**
     * 标准Map类型数据长度
     */
    private Integer dataCapacity;

    /**
     * 标准Map类型负载因子
     */
    private Float dataLoadFactor;

    /**
     *标准Map类型负载因子并发级别
     */
    private Integer dataConcurrencyLevel;



    public Long getMilliSecond() {
        return milliSecond;
    }

    public void setMilliSecond(Long milliSecond) {
        this.milliSecond = milliSecond;
    }

    public Integer getDataCapacity() {
        return dataCapacity;
    }

    public void setDataCapacity(Integer dataCapacity) {
        this.dataCapacity = dataCapacity;
    }

    public Float getDataLoadFactor() {
        return dataLoadFactor;
    }

    public void setDataLoadFactor(Float dataLoadFactor) {
        this.dataLoadFactor = dataLoadFactor;
    }

    public Integer getDataConcurrencyLevel() {
        return dataConcurrencyLevel;
    }

    public void setDataConcurrencyLevel(Integer dataConcurrencyLevel) {
        this.dataConcurrencyLevel = dataConcurrencyLevel;
    }

    public WebAsyncAutoBean() {
    }
}
